using System;
using System.Collections.Generic;
using System.Text;

namespace NBox.Service.Communication
{
    /// <summary>
    /// interface of all services.
    /// </summary>
    public interface IService
    {
        /// <summary>
        /// Gets the name of the service.
        /// </summary>
        /// <value>The name of the service.</value>
        string ServiceName { get; }

        /// <summary>
        /// Gets the client id.
        /// </summary>
        /// <value>The client id.</value>
        Guid ClientId { get; }

        /// <summary>
        /// Calls the service.
        /// </summary>
        /// <param name="msg">The request message.</param>
        /// <returns>The response message.</returns>
        ServiceMessage CallService(ServiceMessage msg);
    }
}
